package openadmin.dao.annotations.type;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <desc> Apply an style to a Row in a tabular view with certain conditions
 * <example> @RowStyle (style="myStyle", attributes={"id","description", conditions={">1", "!='JOSEPH'"}
 * 
 * @author edu
 * @see RowStyleInfo
 *
 */

@Retention(value=RetentionPolicy.RUNTIME)
@Target(value={ElementType.TYPE, ElementType.FIELD})

public @interface RowStyle {
	public String style()	default "";
	public String[] attributes() default "";
	public String[] conditions() default "";
}
